package com.zc.figerstore;

import android.app.Application;
import android.support.annotation.NonNull;
import android.util.Log;

import com.tencent.soter.wrapper.SoterWrapperApi;
import com.tencent.soter.wrapper.wrap_callback.SoterProcessCallback;
import com.tencent.soter.wrapper.wrap_callback.SoterProcessNoExtResult;
import com.tencent.soter.wrapper.wrap_task.InitializeParam;

/**
 * Created by baoyu on 2018/1/14.
 */

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        InitializeParam param = new InitializeParam.InitializeParamBuilder()
                .setScenes(0) // 场景值常量，后续使用该常量进行密钥生成或指纹认证
                .build();
        SoterWrapperApi.init(this, // 场景句柄
                new SoterProcessCallback<SoterProcessNoExtResult>() {
                    @Override
                    public void onResult(@NonNull SoterProcessNoExtResult result) {
                        Log.e("Application result", result.getErrMsg());
                    }
                }, // 初始化回调
                param);
    }
}
